package com.lmt.entity;

import com.lmt.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;


/**
 * 数字字典表
 * Date 2018/7/17
 *
 * @author MT-Lin
 */
@Entity(name = "digital_dictionary")
public class DigitalDictionary extends BaseEntity {

	/**
	 * 名称
	 */
	@Column(name = "designation", length = 32)
	private String designation;

	/**
	 * 编码
	 */
	@Column(name = "code", nullable = false, length = 6, unique = true)
	private String code;

	/**
	 * 父类编码
	 */
	@Column(name = "parent_code", length = 6)
	private String parentCode;

	/**
	 * 描述
	 */
	@Column(name = "description", nullable = false, length = 100)
	private String description;

	/**
	 * 创建人
	 */
	@Column(name = "creator", nullable = false, length = 36)
	private String creator;

	/**
	 * 修改人
	 */
	private String modifier;

	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

}
